import java.util.Scanner;

public class class4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入数字");
        int s = sc.nextInt();
        boolean a = s >=0 && s<=9;
        System.out.println(a);


        Scanner scg = new Scanner(System.in);
        System.out.println("请输入字母");
        int o = scg.nextInt();



        Scanner sca = new Scanner(System.in);
        System.out.println("请输入年份");
        int d = sca.nextInt();
        if (d%4==0 && d%100!=0 ||d%400==0){
            System.out.println("是闰年");}
        else{
            System.out.println("不是闰年");
        }

        Scanner scc = new Scanner(System.in);
        System.out.println("请输入一个数");
        int g = scc.nextInt();
        if(g < 100 || g > 999){
            System.out.println(g+"这不是一个三位数");
        }else{
            int ge = g % 10;
            int shi = g/10%10;
            int bai = g/100;
            if (ge*ge*ge+shi*shi*shi+bai*bai*bai == g){
                System.out.println(g+"这是一个水仙花数");
            }else{
                System.out.println(g+"这不是水仙花数");
            }
        }
        }
    }
